package com.zdp.degisn.strategy_model.strategy.convert;

import com.zdp.degisn.strategy_model.entity.CellFile;
import com.zdp.degisn.strategy_model.entity.PdfFile;

/**
 * @author zhengdp
 * @Description
 * @Date 2022/9/14 22:20
 * @Created by zhengdp
 */
public class CellConvertPdf implements ConvertStrategy<CellFile, PdfFile>{

    private CellConvertPdf(){}

    private static class CellConvertPdfInstance {
        private static final CellConvertPdf instance = new CellConvertPdf();
    }

    public static CellConvertPdf getInstance() {
        return CellConvertPdfInstance.instance;
    }

    @Override
    public PdfFile convert(CellFile obj) {
        System.out.println("Cell文件转换为 PDF");
        return new PdfFile();
    }
}
